package com.hmkx.app.fegin;

import com.hmkx.app.fegin.fallback.MemberFeginFallBack;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author hht
 * @Description 用户相关服务 (Fegion 使用demo)
 * @Date 13:40 2020/1/14
 * @Param 
 * @return 
 **/
@FeignClient(name = "member-service", url = "ucenter.cn-healthcare.com:80",fallback = MemberFeginFallBack.class)
public interface MemberFeignClient {

    @GetMapping("/wapi/member/getBaseMemInfo")
    String getBaseMemByToken(@RequestParam("data") String data);

}
